package com.sg.model.oms.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import com.sg.framework.common.po.BaseEntity;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.io.Serial;
import java.util.Date;

/**
 * 1、存档，表示以后就不可以再使用，存档前不受影响；2、没有冻结。有空间，有应用
 *
 * @author xxx
 */
@Data
@Accessors(chain = true)
@TableName("oms_org_station_type")  //1-3-04岗位类型表（07）
public class StationType implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;


    /**
     * 岗位类型ID
     */
    @TableId(value = "station_type_id", type = IdType.ASSIGN_UUID)
    @NotNull(message = "stationTypeId不能为空")
    private String stationTypeId;
    /**
     * 岗位类型标识
     */
    @TableField(value = "station_type_code")
    @NotNull(message = "岗位类型标识不能为空")
    @Schema(description = "岗位类型标识")
    private String stationTypeCode;
    /**
     * 是否管理岗 TRUE:是 FALSE:否
     */
    @TableField(value = "is_management")
    @NotNull(message = "是否管理岗不能为空")
    @Schema(description = "是否管理岗")
    private String isManagement;
    /**
     * 岗位类型编号
     */
    @TableField(value = "station_type_number")
    @NotNull(message = "岗位类型编号不能为空")
    @Schema(description = "岗位类型编号")
    private String stationTypeNumber;
    /**
     * 岗位类型名称
     */
    @TableField(value = "station_type_name")
    @NotNull(message = "岗位类型名称不能为空")
    @Schema(description = "岗位类型名称")
    private String stationTypeName;
    /**
     * 岗位类型缩写
     */
    @TableField(value = "station_type_en_short")
    @Schema(description = "岗位类型缩写")
    private String stationTypeEnShort;
    /**
     * 职务级别高低顺序 LEVELASC:由高到底 LEVELDESC:由低到高
     */
    @TableField(value = "rank_order_type")
    @Schema(description = "职务级别高低顺序")
    private String rankOrderType;
    /**
     * 岗位等级高低顺序 LEVELASC:由高到底 LEVELDESC:由低到高
     */
    @TableField(value = "station_grade_rank_type")
    @Schema(description = "岗位等级高低顺序")
    private String stationGradeRankType;
    /**
     * 排序
     */
    @TableField(value = "order_number")
    @NotNull(message = "排序不能为空")
    @Schema(description = "排序")
    private Long orderNumber;
    /**
     * 批次ID
     */
    @TableField(value = "batch_id")
    @NotNull(message = "批次ID不能为空")
    @Schema(description = "批次ID")
    private String batchId;
    /**
     * 批次开始时间
     */
    @TableField(value = "batch_start_time")
    @Schema(description = "批次开始时间")
    private Date batchStartTime;
    /**
     * 批次结束时间
     */
    @TableField(value = "batch_end_time")
    @NotNull(message = "批次结束时间不能为空")
    @Schema(description = "批次结束时间")
    private Date batchEndTime;
    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @TableField(value = "subject_life_cycle")
    @NotNull(message = "主体生命周期不能为空")
    @Schema(description = "主体生命周期")
    private String subjectLifeCycle;
    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @TableField(value = "is_archive")
    @NotNull(message = "是否存档不能为空")
    @Schema(description = "是否存档")
    private String isArchive;
    /**
     * 存档类型 NOT_ARCHIVE:未归档 TOBE_ARCHIVING:想归档 ARCHIVED:已归档
     */
    @TableField(value = "achivng_type")
    @NotNull(message = "存档类型不能为空")
    @Schema(description = "存档类型")
    private String achivngType;
    /**
     * 是否未来 TRUE:是 FALSE:否
     */
    @TableField(value = "is_editing")
    @NotNull(message = "是否未来不能为空")
    @Schema(description = "是否未来")
    private String isEditing;
    /**
     * 批次下是否更新 TRUE:是 FALSE:否
     */
    @TableField(value = "is_update")
    @NotNull(message = "批次下是否更新不能为空")
    @Schema(description = "批次下是否更新")
    private String isUpdate;
    /**
     * 批次下更新状态 NEW:本次新增 UNCHANGED:正常未变 REVISION:本次修订 ARCHIVE:本次存档
     */
    @TableField(value = "update_status")
    @NotNull(message = "批次下更新状态不能为空")
    @Schema(description = "批次下更新状态")
    private String updateStatus;
    /**
     * 操作人就职记录ID
     */
    @TableField(value = "operation_induction_id")
    @Schema(description = "操作人就职记录ID")
    private String operationInductionId;
    /**
     * 创建人就职记录ID
     */
    @TableField(value = "create_induction_id")
    @NotNull(message = "创建人就职记录ID不能为空")
    @Schema(description = "创建人就职记录ID")
    private String createInductionId;
    /**
     * 发布人就职记录ID
     */
    @TableField(value = "release_induction_id")
    @Schema(description = "发布人就职记录ID")
    private String releaseInductionId;
    /**
     * 存档人就职记录Id
     */
    @TableField(value = "archive_induction_id")
    @Schema(description = "存档人就职记录Id")
    private String archiveInductionId;
    /**
     * 操作时间
     */
    @TableField(value = "operate_time")
    @Schema(description = "操作时间")
    private Date operateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private Date createTime;
    /**
     * 发布时间
     */
    @TableField(value = "release_time")
    @Schema(description = "发布时间")
    private Date releaseTime;
    /**
     * 存档时间
     */
    @TableField(value = "archive_time")
    @Schema(description = "存档时间")
    private Date archiveTime;
    /**
     * 是否作废 TRUE:是 FALSE:否
     */
    @TableField(value = "is_valid")
    @NotNull(message = "是否作废不能为空")
    @Schema(description = "是否作废")
    private String isValid;
    /**
     * 创建于空间ID
     */
    @TableField(value = "space_id")
    @NotNull(message = "创建于空间ID不能为空")
    @Schema(description = "创建于空间ID")
    private String spaceId;
    /**
     * 创建于联盟应用ID
     */
    @TableField(value = "app_id")
    @NotNull(message = "创建于联盟应用ID不能为空")
    @Schema(description = "创建于联盟应用ID")
    private String appId;
}
